import http from '../utils/http';

export const commentApi = {
  // 获取评论列表
  getComments(noteId) {
    return http.get(`/notes/${noteId}/comments`);
  },
  // 创建评论
  createComment(noteId, data) {
    return http.post(`/notes/${noteId}/comments`, data);
  },
};